package Maps.Google;

import java.util.List;

import android.graphics.drawable.Drawable;
import android.os.Bundle;

import com.google.android.maps.GeoPoint;
import com.google.android.maps.MapActivity;
import com.google.android.maps.MapController;
import com.google.android.maps.MapView;
import com.google.android.maps.Overlay;
import com.google.android.maps.OverlayItem;

public class GoogleMapsActivity extends MapActivity {
    /** Called when the activity is first created. */
	private MapController myMapController;
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        MapView mapView = (MapView) findViewById(R.id.mapview);
        mapView.setBuiltInZoomControls(true);
        myMapController = mapView.getController();
        List<Overlay> mapOverlays = mapView.getOverlays();
        Drawable drawable = this.getResources().getDrawable(R.drawable.androidmarker);
        HelloItemizedOverlay itemizedoverlay = new HelloItemizedOverlay(drawable,this);
        GeoPoint pChipolte = new GeoPoint(40252480, 86542617);
        OverlayItem oiChipolte = new OverlayItem(pChipolte, "Chipolte");
        itemizedoverlay.addOverlay(oiChipolte);
        mapOverlays.add(itemizedoverlay);
        GeoPoint pJimJohns = new GeoPoint(40252409, 86542431);
        OverlayItem oiJimJohns = new OverlayItem(pJimJohns, "Jimmy Johns");
        itemizedoverlay.addOverlay(oiJimJohns);
        mapOverlays.add(itemizedoverlay);
        GeoPoint pDominos = new GeoPoint(40252331, 86542338);
        OverlayItem oiDominos = new OverlayItem(pDominos, "Domino's");
        itemizedoverlay.addOverlay(oiDominos);
        mapOverlays.add(itemizedoverlay);
        GeoPoint pTripleX = new GeoPoint(40252154, 86541965);
        OverlayItem oiTripleX = new OverlayItem(pTripleX, "Triple XXX");
        itemizedoverlay.addOverlay(oiTripleX);
        mapOverlays.add(itemizedoverlay);
        GeoPoint pCitgo = new GeoPoint(40252098, 86542101);
        OverlayItem oiCitgo = new OverlayItem(pCitgo, "Citgo Gas");
        itemizedoverlay.addOverlay(oiCitgo);
        mapOverlays.add(itemizedoverlay);
        GeoPoint pMcdonalds = new GeoPoint(40252100, 86541704);
        OverlayItem oiMcdonalds = new OverlayItem(pMcdonalds, "McDonald's");
        itemizedoverlay.addOverlay(oiMcondalds);
        mapOverlays.add(itemizedoverlay);
        GeoPoint pHotBox = new GeoPoint(40252504, 86542878);
        OverlayItem oiHotBox = new OverlayItem(pHotBox, "HotBox Pizza");
        itemizedoverlay.addOverlay(oiHotBox);
        mapOverlays.add(itemizedoverlay);
        GeoPoint pMastercuts = new GeoPoint(40252524, 86542921);
        OverlayItem oiMastercuts = new OverlayItem(pMastercuts, "MasterCuts");
        itemizedoverlay.addOverlay(oiMastercuts);
        mapOverlays.add(itemizedoverlay);
        GeoPoint pJakesBar = new GeoPoint(40252531, 86542942);
        OverlayItem oiJakesBar = new OverlayItem(pJakesBar, "Jake's Bar");
        itemizedoverlay.addOverlay(oiJakesBar);
        mapOverlays.add(itemizedoverlay);
        GeoPoint pVons = new GeoPoint(40252594, 86543179);
        OverlayItem oiVons = new OverlayItem(pVons, "Von's Goods");
        itemizedoverlay.addOverlay(oiVons);
        mapOverlays.add(itemizedoverlay);
        GeoPoint pHarrys = new GeoPoint(40252598, 86543251);
        OverlayItem oiHarrys = new OverlayItem(pHarrys, "Harry's Chocolate Shop");
        itemizedoverlay.addOverlay(oiHarrys);
        mapOverlays.add(itemizedoverlay);
        GeoPoint pBoilerMarket = new GeoPoint(40252668, 86543211);
        OverlayItem oiBoilerMarket = new OverlayItem(pBoilerMarket, "The Boiler Market");
        itemizedoverlay.addOverlay(oiBoilerMarket);
        mapOverlays.add(itemizedoverlay);
        GeoPoint pNewBreed = new GeoPoint(40252654, 86543165);
        OverlayItem oiNewBreed = new OverlayItem(pNewBreed, "New Breed Tattoo and Body");
        itemizedoverlay.addOverlay(oiNewBreed);
        mapOverlays.add(itemizedoverlay);
        GeoPoint pAmused = new GeoPoint(40252654, 86543151);
        OverlayItem oiAmused = new OverlayItem(pAmused, "Amused");
        itemizedoverlay.addOverlay(oiAmused);
        mapOverlays.add(itemizedoverlay);
        GeoPoint pUnivSpirt = new GeoPoint(40252654, 86543127);
        OverlayItem oiUnivSpirit = new OverlayItem(pUnivSpirit, "University Spirit");
        itemizedoverlay.addOverlay(oiUnivSpirit);
        mapOverlays.add(itemizedoverlay);
        GeoPoint pUnderPrint = new GeoPoint(40252653, 86543102);
        OverlayItem oiUnderPrint = new OverlayItem(pUnderPrint, "Underground Printing");
        itemizedoverlay.addOverlay(oiUnderPrint);
        mapOverlays.add(itemizedoverlay);
        GeoPoint pBrothers = new GeoPoint(40252643, 86543011);
        OverlayItem oiBrothers = new OverlayItem(pBrothers, "Brother's Bar and Grill");
        itemizedoverlay.addOverlay(oiBrothers);
        mapOverlays.add(itemizedoverlay);
        GeoPoint pVonsRestaurant = new GeoPoint(40252579, 86543012);
        OverlayItem oiVonsRestaurant = new OverlayItem(pVonsRestaurant, "Von's Restaurant");
        itemizedoverlay.addOverlay(oiVonsRestaurant);
        mapOverlays.add(itemizedoverlay);
        GeoPoint pDNY = new GeoPoint(40252569, 86542940);
        OverlayItem oiDNY = new OverlayItem(pDNY, "don't know yet!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
        itemizedoverlay.addOverlay(oiDNY);
        mapOverlays.add(itemizedoverlay);
        GeoPoint pWhereElse = new GeoPoint(40252652, 86542955);
        OverlayItem oiWhereElse = new OverlayItem(pWhereElse, "Where Else? Bar");
        itemizedoverlay.addOverlay(oiWhereElse);
        mapOverlays.add(itemizedoverlay);
        GeoPoint pLWSN = new GeoPoint(4042741, 8691686);
        OverlayItem oiLWSN = new OverlayItem(pLWSN, "Lawson Computer Science Building");
        itemizedoverlay.addOverlay(oiLWSN);
        mapOverlays.add(itemizedoverlay);
        GeoPoint pROTC = new GeoPoint(4042807,8691626);
        OverlayItem oiROTC = new OverlayItem(pROTC, "ROTC Armory");
        itemizedoverlay.addOverlay(oiROTC);
        mapOverlays.add(itemizedoverlay);
        GeoPoint pHAAS = new GeoPoint(4042685,8691636);
        OverlayItem oiHAAS = new OverlayItem(pHAAS, "Haas (Felix) Hall");
        itemizedoverlay.addOverlay(oiHAAS);
        mapOverlays.add(itemizedoverlay);
        GeoPoint pSmoothiePlace = new GeoPoint(40252653, 86542910);
        OverlayItem oiSmoothiePlace = new OverlayItem(pSmoothiePlace, "Smoothie place");
        itemizedoverlay.addOverlay(oiSmoothiePlace);
        mapOverlays.add(itemizedoverlay);
        GeoPoint pGreyhouse = new GeoPoint(40252647, 86542746);
        OverlayItem oiGreyhouse = new OverlayItem(pGreyhouse, "Greyhouse");
        itemizedoverlay.addOverlay(oiGreyhouse);
        mapOverlays.add(itemizedoverlay);
        GeoPoint pChase = new GeoPoint(40252579, 86542717);
        OverlayItem oiChase = new OverlayItem(pChase, "Chase Bank and ATM");
        itemizedoverlay.addOverlay(oiChase);
        mapOverlays.add(itemizedoverlay);
        GeoPoint pSpurlocks = new GeoPoint(40252222, 86541473);
        OverlayItem oiSpurlocks = new OverlayItem(pSpurlocks, "Spurlock's");
        itemizedoverlay.addOverlay(oiSpurlocks);
        mapOverlays.add(itemizedoverlay);
        GeoPoint pWendys = new GeoPoint(40251949, 86540666);
        OverlayItem oiWendys = new OverlayItem(pWendys, "Wendy's");
        itemizedoverlay.addOverlay(oiWendys);
        mapOverlays.add(itemizedoverlay);
        GeoPoint pStarbucks = new GeoPoint(40251682, 86540655);
        OverlayItem oStarbucks = new OverlayItem(pStarbucks, "Starbucks");
        itemizedoverlay.addOverlay(oiStarbucks);
        mapOverlays.add(itemizedoverlay);
        GeoPoint pMcdonaldsNW = new GeoPoint(40255155, 86544745);
        OverlayItem oiMcdonaldsNW = new OverlayItem(pMcdonaldNW, "McDonald's");
        itemizedoverlay.addOverlay(oiMcdonaldsNW);
        mapOverlays.add(itemizedoverlay);
        GeoPoint pBP = new GeoPoint(40255415, 86545078);
        OverlayItem oiBP = new OverlayItem(pBP, "BP Gas Station");
        itemizedoverlay.addOverlay(oiBP);
        mapOverlays.add(itemizedoverlay);
        GeoPoint pVisitorCenter = new GeoPoint(40254683, 86544330);
        OverlayItem oiVisitorCenter = new OverlayItem(pVisitorCenter, "Purdue Visitor Center and Northwestern Parking Garage");
        itemizedoverlay.addOverlay(oiVisitorCenter);
        mapOverlays.add(itemizedoverlay);
        GeoPoint pRevolution = new GeoPoint(40253548, 86543213);
        OverlayItem oiRevolution = new OverlayItem(pRevolution, "Revolution Tattoo and Body");
        itemizedoverlay.addOverlay(oiRevolution);
        mapOverlays.add(itemizedoverlay);
        GeoPoint point36 = new GeoPoint(40253523, 86543206);
        OverlayItem overlayitem36 = new OverlayItem(point36, "Beaux Cheveux Styling Salon");
        itemizedoverlay.addOverlay(overlayitem36);
        mapOverlays.add(itemizedoverlay);
        GeoPoint pVillageBottle = new GeoPoint(40253387, 86542894);
        OverlayItem oiVillageBottle = new OverlayItem(pVillageBottle, "Village Bottle Shop");
        itemizedoverlay.addOverlay(overlayitem37);
        mapOverlays.add(itemizedoverlay);
        GeoPoint point38 = new GeoPoint(40253048, 86542743);
        OverlayItem overlayitem38 = new OverlayItem(point38, "West Lafayette Public Library");
        itemizedoverlay.addOverlay(overlayitem38);
        mapOverlays.add(itemizedoverlay);
        GeoPoint pEinsteinBros = new GeoPoint(40253020, 86542916);
        OverlayItem oiEinsteinBros = new OverlayItem(pEinsteinBros, "Einstein Bros. Bagels");
        itemizedoverlay.addOverlay(oiEinsteinBros);
        mapOverlays.add(itemizedoverlay);
        GeoPoint pSubwayNW = new GeoPoint(40252790, 86542904);
        OverlayItem oiSubwayNW = new OverlayItem(pSubwayNW, "Subway");
        itemizedoverlay.addOverlay(oiSubwayNW);
        mapOverlays.add(itemizedoverlay);
        GeoPoint pArbys = new GeoPoint(40252338, 86542897);
        OverlayItem oiArbys = new OverlayItem(pArbys, "Arby's");
        itemizedoverlay.addOverlay(oiArbys);
        mapOverlays.add(itemizedoverlay);
        GeoPoint pFuLam = new GeoPoint(40252236, 86542783);
        OverlayItem oiFuLam = new OverlayItem(pFuLam, "Fu Lam Chinese Restaurant");
        itemizedoverlay.addOverlay(oiFuLam);
        mapOverlays.add(itemizedoverlay);
        GeoPoint pBasilThai = new GeoPoint(40252236, 86542766);
        OverlayItem oiBasilThai = new OverlayItem(pBasilThai, "Basil Thai Restaurant");
        itemizedoverlay.addOverlay(oiBasilThai);
        mapOverlays.add(itemizedoverlay);
        GeoPoint pTacoBell = new GeoPoint(40252194, 86542670);
        OverlayItem oiTacoBell = new OverlayItem(pTacoBell, "Taco Bell");
        itemizedoverlay.addOverlay(oiTacoBell);
        mapOverlays.add(itemizedoverlay);
        GeoPoint pDairyQueen = new GeoPoint(40252194, 86542668);
        OverlayItem oiDairyQueen = new OverlayItem(pDairyQueen, "Dairy Queen");
        itemizedoverlay.addOverlay(oiDairyQueen);
        mapOverlays.add(itemizedoverlay);
        GeoPoint pHookah = new GeoPoint(40252266, 86542883);
        OverlayItem oiHookah = new OverlayItem(pHookah, "Hookah!");
        itemizedoverlay.addOverlay(oiHookah);
        GeoPoint defaultZoom = new GeoPoint(404279,869213);
        myMapController.animateTo(defaultZoom);
        myMapController.setZoom(20);
    }
    @Override
    protected boolean isRouteDisplayed() {
        return false;
    }
}